package com.wxzz.elearing.comment.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wxzz.elearing.comment.entity.SkillVideoLog;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 技能沉淀视频观看记录 Mapper 接口
 * </p>
 *
 * @author
 * @since 2021-05-17
 */
public interface SkillVideoLogMapper extends BaseMapper<SkillVideoLog> {

    @Select("select id from skill_video_log where skill_id=#{skillId} and watch_user_id=#{watchUserId} limit 1")
    Long getLogByUser(@Param("skillId") Long skillId, @Param("watchUserId") Long watchUserId);

}
